package dice.sinanya.tools.checkdata;

import dice.sinanya.entity.imal.AlgorithmTypes;

import javax.swing.*;
import java.util.HashMap;
import java.util.Map;

public class ScatterPlotChart extends JFrame {
    public static void main(String[] args) {
        DataMake dataMake = new DataMake();
//        HashMap<Integer, Integer> dataExpect = dataMake.getData(1000000000, AlgorithmTypes.Expect);
//        for (Map.Entry<Integer, Integer> dataMap : dataExpect.entrySet()) {
//            dataMake.write("./saveExpect.tsv", dataMap.getKey() + "\t" + dataMap.getValue()+"\n");
//        }
//
        HashMap<Integer, Integer> dataMersenne = dataMake.getData(1000000000, AlgorithmTypes.Mersenne);
        for (Map.Entry<Integer, Integer> dataMap : dataMersenne.entrySet()) {
            dataMake.write("./saveMersenne.tsv", dataMap.getKey() + "\t" + dataMap.getValue() + "\n");
        }

//        HashMap<Integer, Integer> dataDefault = dataMake.getData(1000000000, AlgorithmTypes.Default);
//        for (Map.Entry<Integer, Integer> dataMap : dataDefault.entrySet()) {
//            dataMake.write("./saveDefault.tsv", dataMap.getKey() + "\t" + dataMap.getValue()+"\n");
//        }
    }
}